package com.zeldu.teacher.homework.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("teacher")
public class Teacher implements Serializable{
    private static final long serialVersionUID = 2L;

    /*
     *
     * */
    @TableId(value = "ID",type = IdType.ID_WORKER)
    private Long id;
    /*
     * 居民名字
     * */
    @TableField(value = "user_name")
    private String userName;
    /*
     *
     * */
    @TableField(value = "phone")
    private String mobile;
    /*
     *
     * */
    @TableField(value = "sex")
    private int sex;

    @TableField(value = "pass_word")
    private String passWord;
    /*
     *
     * */
    @TableField(value = "real_name")
    private String realName;
    /*
     *
     * */
    @TableField(value = "email_addr")
    private String emailAddr;
    /*
     *
     * */
    @TableField(value = "head_url")
    private String headUrl;




    @TableField(value = "permission")
    private String permission;


}
